// #ifdef H5
// let baseUrl="/api";
 // let baseUrl="https://wap.yunxingzhan.com/api";
 let baseUrl="https://testwap.yitingxinxuan.com/api";
// #endif
// #ifndef H5
 // let baseUrl="https://wap.yunxingzhan.com/api";
let baseUrl="https://testwap.yitingxinxuan.com/api";
// #endif

let getPhoneCodeUrl=baseUrl+"/get_phone_code";//获取手机验证码
let getPhoneCodeNowUrl=baseUrl+"/get_phone_code_now";//获取手机验证码
let loginUrl=baseUrl+"/login";// 登陆
let registerUrl=baseUrl+"/register";// 注册
let forgetPasswordUrl=baseUrl+"/forget_password";// 忘记密码
let bannerListUrl=baseUrl+"/banner_list";//轮播图
let getMenuUrl=baseUrl+"/get_menu";// 个人中心菜单/首页导航
let userCouponUrl=baseUrl+"/user_coupon";// 优惠券列表
let getCouponUrl=baseUrl+"/get_coupon";// 领取优惠券
let goodsRecommendListUrl=baseUrl+"/goods_recommend_list";// 首页为你推荐列表
let zhiboRoomListUrl=baseUrl+"/zhibo_room_list";// 直播间列表
let hdListUrl=baseUrl+"/huodong_list";// 促销互动列表
let getCxInfoUrl=baseUrl+"/huodong_detail";// 促销互动详情
let setZsGoodsUrl=baseUrl+"/huodong_zsgid";// 促销互动详情
let getTxInfoUrl=baseUrl+"/huodong_detailtx";// 促销互动详情
let pinListUrl=baseUrl+"/pin_list";// 促销互动列表
let getPinInfoUrl=baseUrl+"/pin_detail";// 促销互动详情
let getPinYenUrl=baseUrl+"/pin_task";// 促销互动详情
let setPinShareUrl=baseUrl+"/pin_share";// 促销互动详情


let goodsDetailUrl=baseUrl+"/goods_detail";// 商品详情
let collectUrl=baseUrl+"/collect";// 商品详情收藏
let addressListUrl=baseUrl+"/address_list";// 收货地址列表
let editAddressUrl=baseUrl+"/edit_address";// 保存修改收货地址
let delAddressUrl=baseUrl+"/del_address";// 删除收货地址

let bankListUrl=baseUrl+"/bank_list";// 银行卡列表
let editBankUrl=baseUrl+"/edit_bank";// 保存修改银行卡
let delBankUrl=baseUrl+"/del_bank";// 删除银行卡
let getOrderPayResultUrl=baseUrl+"/get_order_pay_result";// 删除银行卡


let goodsListUrl=baseUrl+"/goods_list";// 检索商品列表
let categoryListUrl=baseUrl+"/category_list";// 商品分类
let addCartUrl=baseUrl+"/add_cart";// 加入购物车
let cartListsUrl=baseUrl+"/cart_lists";// 购物车列表
let cartCountUrl=baseUrl+"/cart_count";// 购物车总条数
let delCartUrl=baseUrl+"/del_cart";// 购物车删除
let commentListUrl=baseUrl+"/comment_list";// 评论列表
let collectListUrl=baseUrl+"/collect_list";// 收藏列表
let cancelCollectUrl=baseUrl+"/cancel_collect";// 取消收藏(根据id删除，可以批量删除)
let userInfoUrl=baseUrl+"/user_info";// 查询会员信息
let editUserInfoUrl=baseUrl+"/edit_user_info";// 修改昵称
let editHeadImgUrl=baseUrl+"/edit_head_img";// 修改头像
let buyNowUrl=baseUrl+"/buy_now";// 立即购买
let isLoginUrl=baseUrl+"/is_login";// 是否登录
let wxminiGetOpenidUrl=baseUrl+"/wxmini_get_openid";// 获取openid
let payUrl=baseUrl+"/buy_now";// 从商品详情购买后的支付
let orderCartUrl=baseUrl+"/order_cart";// 从购物车跳转确认订单
let carPayUrl=baseUrl+"/order_cart";// 从购物车跳转确认订单后支付
let orderListUrl=baseUrl+"/order_list";// 订单列表
let orderDetailUrl=baseUrl+"/order_detail";// 订单详情
let orderCancleUrl=baseUrl+"/order_cancle";// 取消订单
let orderPayUrl=baseUrl+"/order_pay";// 订单详情支付
let orderReceiptUrl=baseUrl+"/order_receipt";// 确认收货
let orderCommentUrl=baseUrl+"/order_comment";// 订单商品评价
let refundApplyUrl=baseUrl+"/refund_apply";// 订单申请售后
let refundInfoUrl=baseUrl+"/refund_info";// 售后原因
let refundListsUrl=baseUrl+"/refund_lists";// 售后列表
let pinListsUrl=baseUrl+"/pin_lists";// 售后列表
let hdListsUrl=baseUrl+"/hd_lists";// 售后列表


let cancelRefundUrl=baseUrl+"/cancel_refund";// 取消售后
let refundDeliveryUrl=baseUrl+"/refund_delivery";// 填写物流单号
let expressListUrl=baseUrl+"/express_list";// 物流公司列表
let editPasswordUrl=baseUrl+"/edit_password";// 修改密码
let editPhoneUrl=baseUrl+"/edit_phone";// 修改手机号
let spreadBannerUrl=baseUrl+"/spread_banner";// 个人中心邀请好友

let presellDetailUrl=baseUrl+"/presell_detail";// 预售详情
let presellBuyUrl=baseUrl+"/presell_buy";// 预售购买
let presellOrderUrl=baseUrl+"/presell_order";// 预售下订单加支付  get为下订单post为支付
let presellPayUrl=baseUrl+"/presell_order";// 预售下订单加支付  get为下订单post为支付
let presellOrderListUrl = baseUrl + "/presell_order_list";
let presellCreateOrderUrl=baseUrl+"/presell_create_order";// 创建订单
let presellListUrl=baseUrl+"/presell_list";

let stockCreateOrderUrl = baseUrl + "/stock/create_order";
let stockOrderListUrl = baseUrl + "/stock/order_list";
let stockInfoUrl = baseUrl + "/stock/stock_info";
let stockTeamListUrl = baseUrl + "/stock/team_list";
let stockRecordListUrl = baseUrl + "/stock/record_list";
let stockTransferUrl = baseUrl + "/stock/transfer";
let stockTransferListUrl = baseUrl + "/stock/transfer_list";
let stockRefundListUrl = baseUrl + "/stock/refund_list";
let stockAuditListUrl = baseUrl + "/stock/audit_list";
let stockAuditUrl = baseUrl + "/stock/audit";
let stockRejectUrl = baseUrl + "/stock/reject";
let stockRefundUrl = baseUrl + "/stock/refund";
let stockCancelOrderUrl = baseUrl + "/stock/cancel_order";
let stockPurchasePayUrl = baseUrl + "/stock/purchase_pay";
let stockNoticeCreateUrl = baseUrl + "/stock/notice_create";
let stockCheckPriceUrl = baseUrl + "/stock/check_price";

let seckillDetailUrl=baseUrl+"/seckill_detail";// 秒杀详情
let seckillBuyUrl=baseUrl+"/seckill_buy";// 秒杀购买
let seckillOrderUrl=baseUrl+"/seckill_order";// 秒杀下订单加支付  get为下订单post为支付
let seckillPayUrl=baseUrl+"/seckill_order";// 秒杀下订单加支付  get为下订单post为支付


let timeLimitedListUrl=baseUrl+"/time_limited_list";// 秒杀列表
let timeLimitedDetailUrl=baseUrl+"/time_limited_detail";// 秒杀详情
let timeLimitedOrderUrl=baseUrl+"/time_limited_order";// 秒杀下订单加支付  get为下订单post为支付
let timeLimitedOrderListUrl=baseUrl+"/time_limited_order_list";// 秒杀订单
let timeLimitedCancelUrl=baseUrl+"/time_limited_cancel";// 秒杀取消订单
let timeLimitedReceiptUrl=baseUrl+"/time_limited_receipt";// 秒杀确认收货
let timeLimitedGoPayUrl=baseUrl+"/time_limited_go_pay";// 秒杀订单详情支付
let timeLimitedOrderDetailUrl=baseUrl+"/time_limited_order_detail";// 秒杀订单详情
let timeLimitedRefundApplyUrl=baseUrl+"/time_limited_refund_apply";// 秒杀申请售后
let timeLimitedRefundListsUrl=baseUrl+"/time_limited_refund_lists";// 秒杀售后列表
let timeLimitedRefundCancelUrl=baseUrl+"/time_limited_refund_cancel";// 秒杀取消售后
let timeLimitedRefundDeliveryUrl=baseUrl+"/time_limited_refund_delivery";// 秒杀填写物流单号
let sharingListUrl=baseUrl+"/sharing_list";// 拼团列表
let sharingDetailUrl=baseUrl+"/sharing_detail";// 拼团详情
let sharingGroupListUrl=baseUrl+"/sharing_group_list";// 拼团成团记录
let sharingOrderUrl=baseUrl+"/sharing_order";// 秒杀下订单加支付  get为下订单post为支付
let sharingOrderListUrl=baseUrl+"/sharing_order_list";// 团购订单
let sharingOrderDetailUrl=baseUrl+"/sharing_order_detail";// 团购订单详情
let sharingCancelUrl=baseUrl+"/sharing_cancel";// 团购取消订单
let sharingReceiptUrl=baseUrl+"/sharing_receipt";// 团购确认收货
let sharingGoPayUrl=baseUrl+"/sharing_go_pay";// 团购订单详情支付
let sharingRefundApplyUrl=baseUrl+"/sharing_refund_apply";// 团购申请售后
let sharingRefundListsUrl=baseUrl+"/sharing_refund_lists";// 团购售后列表
let sharingRefundCancelUrl=baseUrl+"/sharing_refund_cancel";// 团购取消售后
let sharingRefundDeliveryUrl=baseUrl+"/sharing_refund_delivery";// 团购填写物流单号
let goodsBannerUrl=baseUrl+"/goods_banner";// 商品详情分享
let cuxiaoBannerUrl=baseUrl+"/huodong_banner";// 活动详情分享
let shtxBannerUrl=baseUrl+'/huodong_txbanner';
let pinBannerUrl=baseUrl+"/pin_banner";// 活动详情分享

let myTeamUrl=baseUrl+"/my_team";// 我的团队
let distributeLogUrl=baseUrl+"/distribute_log";// 分销记录
let withdrawUrl=baseUrl+"/withdraw";// 提现申请
let levelLogUrl=baseUrl+"/user_level_log";// 等级变动
let userProblemUrl=baseUrl+"/user_problem";// 常见问题
let userMessageUrl=baseUrl+"/user_message";// 个人中心消息列表
let getAboutUsUrl=baseUrl+"/get_about_us";// 关于我们
let getAssistListUrl=baseUrl+"/get_assist_list";// 协助保单列表
let getAssistCodeUrl=baseUrl+"/get_assist_code";
let orderExpressUrl=baseUrl+"/order_express";// 查看订单物流
let sharingExpressUrl=baseUrl+"/sharing_express";// 查看拼团订单物流
let timeLimitedExpressUrl=baseUrl+"/time_limited_express";// 查看秒杀订单物流
let xieyiUrl=baseUrl+"/xieyi";// 用户协议
let addSpreadUrl=baseUrl+"/add_spread";// 绑定推荐人
let loginOutUrl=baseUrl+"/login_out";// 退出登录
let noticeUrl=baseUrl+"/user_center_notice";// 我的社群消息
let storeInfoUrl=baseUrl+"/store_info";// 首页消息
let editPayPassUrl=baseUrl+"/edit_pay_pass";// 修改交易密码
let getExpressUrl=baseUrl+"/get_express";// 物流详细信息
let transferUrl=baseUrl+"/transfer";// 转帐 会员之间互转
let spreadCodeNameUrl=baseUrl+"/spread_code_name";// 查询会员昵称
let editionUrl=baseUrl+"/edition";// 版本验证
let pinFreeUserUrl=baseUrl+"/pin_free_user";// 拼团面单用户列表

let ywfxUrl=baseUrl+"/user_ywfx";


let assistOrderCartUrl=baseUrl+"/assist_cart";// 代购跳转确认订单
let assistPayUrl=baseUrl+"/assist_cart";// 代购跳转确认订单后支付

let createGiftUrl=baseUrl+"/create_gift";// 创建礼物
let giftInfoUrl=baseUrl+"/gift_info";// 礼品信息
let receiveGiftUrl=baseUrl+"/receive_gift";// 领取礼品
let sendListUrl=baseUrl+"/send_list";// 发送记录
let receiveListUrl=baseUrl+"/receive_list";// 领取记录
let giftReceiveListUrl=baseUrl+"/gift_receive_list";// 领取记录
let createGiftOrderUrl=baseUrl+"/create_gift_order";// 创建订单

let newOrderUrl=baseUrl+"/new_order";// 收银台获取订单信息
let newPayUrl=baseUrl+"/new_pay";// 收银台支付

let exchangeDetailUrl=baseUrl+"/exchange_detail";// 积分兑换详情
let exchangeBuyUrl=baseUrl+"/exchange_buy";// 积分兑换购买
let exchangeOrderUrl=baseUrl+"/exchange_order";// 兑换下订单加支付  get为下订单post为支付
let exchangePayUrl=baseUrl+"/exchange_order";// 兑换下订单加支付  get为下订单post为支付
let exchangeOrderListUrl = baseUrl + "/exchange_order_list";
let exchangeCreateOrderUrl=baseUrl+"/exchange_create_order";// 创建订单
let exchangeListUrl=baseUrl+"/exchange_list";
let exchangeExpressUrl=baseUrl+"/exchange_express";// 查看兑换订单物流
let getExchangeExpressUrl=baseUrl+"/get_exchange_express";// 物流详细信息


const install = (Vue, vm) => {
	let config={
		//"app-version":"1",
		"Content-Type":"application/x-www-form-urlencoded",
		"Authori-zation":uni.getStorageSync('Authori-zation'),
	}
	let getPhoneCode = (params = {}) => vm.$u.post(getPhoneCodeUrl, params,config);
	let getPhoneCodeNow = (params = {}) => vm.$u.post(getPhoneCodeNowUrl, params,config);
	let login = (params = {}) => vm.$u.post(loginUrl, params,config);
	let register = (params = {}) => vm.$u.post(registerUrl, params,config);
	let forgetPassword = (params = {}) => vm.$u.post(forgetPasswordUrl, params,config);
	let bannerList = (params = {}) => vm.$u.get(bannerListUrl, params,config);
	let getMenu=(params = {}) => vm.$u.post(getMenuUrl, params,config);
	let userCoupon=(params = {}) => vm.$u.get(userCouponUrl, params,config);
	let getCoupon=(params = {}) => vm.$u.get(getCouponUrl, params,config);
	let goodsRecommendList=(params = {}) => vm.$u.post(goodsRecommendListUrl, params,config);
	let zhiboRoomList=(params = {}) => vm.$u.post(zhiboRoomListUrl, params,config);
	let hdList=(params = {}) => vm.$u.post(hdListUrl, params,config);
	let pinList=(params = {}) => vm.$u.post(pinListUrl, params,config);
	let getPinInfo=(params = {}) => vm.$u.post(getPinInfoUrl, params,config);
	let getPinYen=(params = {}) => vm.$u.post(getPinYenUrl, params,config);
	let setPinShare=(params = {}) => vm.$u.post(setPinShareUrl, params,config);




	let setZsGoods=(params = {}) => vm.$u.post(setZsGoodsUrl, params,config);
	let getCxInfo=(params = {}) => vm.$u.post(getCxInfoUrl, params,config);
	let getTxInfo=(params = {}) => vm.$u.post(getTxInfoUrl, params,config);

	let goodsDetail=(params = {}) => vm.$u.post(goodsDetailUrl, params,config);
	let collect=(params = {}) => vm.$u.get(collectUrl, params,config);
	let addressList=(params = {}) => vm.$u.get(addressListUrl, params,config);
	let editAddress=(params = {}) => vm.$u.post(editAddressUrl, params,config);
	let delAddress=(params = {}) => vm.$u.post(delAddressUrl, params,config);

	let bankList=(params = {}) => vm.$u.get(bankListUrl, params,config);
	let editBank=(params = {}) => vm.$u.post(editBankUrl, params,config);
	let delBank=(params = {}) => vm.$u.post(delBankUrl, params,config);
	let getOrderPayResult=(params = {}) => vm.$u.post(getOrderPayResultUrl, params,config);

	let goodsList=(params = {}) => vm.$u.post(goodsListUrl, params,config);
	let categoryList=(params = {}) => vm.$u.post(categoryListUrl, params,config);
	let addCart=(params = {}) => vm.$u.post(addCartUrl, params,config);
	let cartLists=(params = {}) => vm.$u.post(cartListsUrl, params,config);
	let cartCount=(params = {}) => vm.$u.get(cartCountUrl, params,config);
	let delCart=(params = {}) => vm.$u.post(delCartUrl, params,config);
	let commentList=(params = {}) => vm.$u.post(commentListUrl, params,config);
	let collectList=(params = {}) => vm.$u.get(collectListUrl, params,config);
	let cancelCollect=(params = {}) => vm.$u.get(cancelCollectUrl, params,config);
	let userInfo=(params = {}) => vm.$u.get(userInfoUrl, params,config);
	let editUserInfo=(params = {}) => vm.$u.post(editUserInfoUrl, params,config);
	let editHeadImg=editHeadImgUrl;
	let buyNow=(params = {}) => vm.$u.get(buyNowUrl, params,config);
	let isLogin=(params = {}) => vm.$u.get(isLoginUrl, params,config);
	let wxminiGetOpenid=(params = {}) => vm.$u.get(wxminiGetOpenidUrl, params,config);
	let pay=(params = {}) => vm.$u.post(payUrl, params,config);
	let orderCart=(params = {}) => vm.$u.get(orderCartUrl, params,config);
	let carPay=(params = {}) => vm.$u.post(carPayUrl, params,config);
	let orderList=(params = {}) => vm.$u.post(orderListUrl, params,config);
	let orderDetail=(params = {}) => vm.$u.get(orderDetailUrl, params,config);
	let orderCancle=(params = {}) => vm.$u.post(orderCancleUrl, params,config);
	let orderPay=(params = {}) => vm.$u.post(orderPayUrl, params,config);
	let orderReceipt=(params = {}) => vm.$u.post(orderReceiptUrl, params,config);
	let orderComment=(params = {}) => vm.$u.post(orderCommentUrl, params,config);
	let refundApply=(params = {}) => vm.$u.post(refundApplyUrl, params,config);
	let refundInfo=(params = {}) => vm.$u.get(refundInfoUrl, params,config);
	let refundLists=(params = {}) => vm.$u.post(refundListsUrl, params,config);
	let pinLists=(params = {}) => vm.$u.post(pinListsUrl, params,config);
	let hdLists=(params = {}) => vm.$u.post(hdListsUrl, params,config);


	let cancelRefund=(params = {}) => vm.$u.get(cancelRefundUrl, params,config);
	let refundDelivery=(params = {}) => vm.$u.post(refundDeliveryUrl, params,config);
	let expressList=(params = {}) => vm.$u.get(expressListUrl, params,config);
	let editPassword=(params = {}) => vm.$u.post(editPasswordUrl, params,config);
	let editPhone=(params = {}) => vm.$u.post(editPhoneUrl, params,config);
	let spreadBanner=(params = {}) => vm.$u.get(spreadBannerUrl, params,config);

	let presellDetail=(params = {}) => vm.$u.post(presellDetailUrl, params,config);
	let presellBuy=(params = {}) => vm.$u.post(presellBuyUrl, params,config);
	let presellOrder=(params = {}) => vm.$u.get(presellOrderUrl, params,config);
	let presellPay=(params = {}) => vm.$u.post(presellPayUrl, params,config);
	let presellOrderList=(params = {}) => vm.$u.post(presellOrderListUrl, params,config);
	let presellCreateOrder=(params = {}) => vm.$u.post(presellCreateOrderUrl, params,config);
	let presellList=(params = {}) => vm.$u.post(presellListUrl, params,config);

	let exchangeDetail=(params = {}) => vm.$u.post(exchangeDetailUrl, params,config);
	let exchangeBuy=(params = {}) => vm.$u.post(exchangeBuyUrl, params,config);
	let exchangeOrder=(params = {}) => vm.$u.get(exchangeOrderUrl, params,config);
	let exchangePay=(params = {}) => vm.$u.post(exchangePayUrl, params,config);
	let exchangeOrderList=(params = {}) => vm.$u.post(exchangeOrderListUrl, params,config);
	let exchangeCreateOrder=(params = {}) => vm.$u.post(exchangeCreateOrderUrl, params,config);
	let exchangeList=(params = {}) => vm.$u.post(exchangeListUrl, params,config);
	let exchangeExpress=(params = {}) => vm.$u.post(exchangeExpressUrl, params,config);
	let getExchangeExpress=(params = {}) => vm.$u.post(getExchangeExpressUrl, params,config);


	let stockCreateOrder=(params = {}) => vm.$u.post(stockCreateOrderUrl, params,config);
	let stockOrderList=(params = {}) => vm.$u.post(stockOrderListUrl, params,config);
	let stockInfo=(params = {}) => vm.$u.post(stockInfoUrl, params,config);
	let stockTeamList=(params = {}) => vm.$u.post(stockTeamListUrl, params,config);
	let stockRecordList=(params = {}) => vm.$u.post(stockRecordListUrl, params,config);
	let stockTransfer=(params = {}) => vm.$u.post(stockTransferUrl, params,config);
	let stockTransferList=(params = {}) => vm.$u.post(stockTransferListUrl, params,config);
	let stockRefundList=(params = {}) => vm.$u.post(stockRefundListUrl, params,config);
	let stockAuditList=(params = {}) => vm.$u.post(stockAuditListUrl, params,config);
	let stockAudit=(params = {}) => vm.$u.post(stockAuditUrl, params,config);
	let stockReject=(params = {}) => vm.$u.post(stockRejectUrl, params,config);
	let stockRefund=(params = {}) => vm.$u.post(stockRefundUrl, params,config);
	let stockCancelOrder=(params = {}) => vm.$u.post(stockCancelOrderUrl, params,config);
	let stockPurchasePay=(params = {}) => vm.$u.post(stockPurchasePayUrl, params,config);
	let stockNoticeCreate=(params = {}) => vm.$u.post(stockNoticeCreateUrl, params,config);
	let stockCheckPrice=(params = {}) => vm.$u.post(stockCheckPriceUrl, params,config);


	let seckillDetail=(params = {}) => vm.$u.post(seckillDetailUrl, params,config);
	let seckillBuy=(params = {}) => vm.$u.post(seckillBuyUrl, params,config);
	let seckillOrder=(params = {}) => vm.$u.get(seckillOrderUrl, params,config);
	let seckillPay=(params = {}) => vm.$u.post(seckillPayUrl, params,config);

	let timeLimitedList=(params = {}) => vm.$u.get(timeLimitedListUrl, params,config);
	let timeLimitedDetail=(params = {}) => vm.$u.post(timeLimitedDetailUrl, params,config);
	let timeLimitedOrder=(params = {}) => vm.$u.get(timeLimitedOrderUrl, params,config);
	let payTimeLimitedOrder=(params = {}) => vm.$u.post(timeLimitedOrderUrl, params,config);
	let timeLimitedOrderList=(params = {}) => vm.$u.get(timeLimitedOrderListUrl, params,config);
	let timeLimitedCancel=(params = {}) => vm.$u.get(timeLimitedCancelUrl, params,config);
	let timeLimitedReceipt=(params = {}) => vm.$u.get(timeLimitedReceiptUrl, params,config);
	let timeLimitedGoPay=(params = {}) => vm.$u.get(timeLimitedGoPayUrl, params,config);
	let timeLimitedOrderDetail=(params = {}) => vm.$u.get(timeLimitedOrderDetailUrl, params,config);
	let timeLimitedRefundApply=(params = {}) => vm.$u.post(timeLimitedRefundApplyUrl, params,config);
	let timeLimitedRefundLists=(params = {}) => vm.$u.get(timeLimitedRefundListsUrl, params,config);
	let timeLimitedRefundCancel=(params = {}) => vm.$u.get(timeLimitedRefundCancelUrl, params,config);
	let timeLimitedRefundDelivery=(params = {}) => vm.$u.get(timeLimitedRefundDeliveryUrl, params,config);
	let sharingList=(params = {}) => vm.$u.get(sharingListUrl, params,config);
	let sharingDetail=(params = {}) => vm.$u.get(sharingDetailUrl, params,config);
	let sharingOrder=(params = {}) => vm.$u.get(sharingOrderUrl, params,config);
	let sharingGroupList=(params = {}) => vm.$u.get(sharingGroupListUrl, params,config);
	let paySharingOrder=(params = {}) => vm.$u.post(sharingOrderUrl, params,config);
	let sharingOrderList=(params = {}) => vm.$u.get(sharingOrderListUrl, params,config);
	let sharingOrderDetail=(params = {}) => vm.$u.get(sharingOrderDetailUrl, params,config);
	let sharingCancel=(params = {}) => vm.$u.get(sharingCancelUrl, params,config);
	let sharingReceipt=(params = {}) => vm.$u.get(sharingReceiptUrl, params,config);
	let sharingGoPay=(params = {}) => vm.$u.get(sharingGoPayUrl, params,config);
	let sharingRefundApply=(params = {}) => vm.$u.post(sharingRefundApplyUrl, params,config);
	let sharingRefundLists=(params = {}) => vm.$u.get(sharingRefundListsUrl, params,config);
	let sharingRefundCancel=(params = {}) => vm.$u.get(sharingRefundCancelUrl, params,config);
	let sharingRefundDelivery=(params = {}) => vm.$u.get(sharingRefundDeliveryUrl, params,config);
	let goodsBanner=(params = {}) => vm.$u.get(goodsBannerUrl, params,config);
	let cuxiaoBanner=(params = {}) => vm.$u.get(cuxiaoBannerUrl, params,config);
	let shtxBanner=(params = {}) => vm.$u.get(shtxBannerUrl, params,config);

	let pinBanner=(params = {}) => vm.$u.get(pinBannerUrl, params,config);

	let myTeam=(params = {}) => vm.$u.get(myTeamUrl, params,config);
	let distributeLog=(params = {}) => vm.$u.get(distributeLogUrl, params,config);
	let withdraw=(params = {}) => vm.$u.post(withdrawUrl, params,config);
	let levelLog=(params = {}) => vm.$u.get(levelLogUrl, params,config);
	let wxchat_get_openid=(params = {}) => vm.$u.get(baseUrl+"/wxchat_get_openid", params,config);
	let userProblem=(params = {}) => vm.$u.get(userProblemUrl, params,config);
	let userMessage=(params = {}) => vm.$u.get(userMessageUrl, params,config);
	let getAboutUs=(params = {}) => vm.$u.get(getAboutUsUrl, params,config);
	let getAssistList=(params = {}) => vm.$u.get(getAssistListUrl, params,config);
	let getAssistCode=(params = {}) => vm.$u.get(getAssistCodeUrl, params,config);
	let orderExpress=(params = {}) => vm.$u.post(orderExpressUrl, params,config);
	let sharingExpress=(params = {}) => vm.$u.get(sharingExpressUrl, params,config);
	let timeLimitedExpress=(params = {}) => vm.$u.get(timeLimitedExpressUrl, params,config);
	let getXieyi=(params = {}) => vm.$u.get(xieyiUrl, params,config);
	let addSpread=(params = {}) => vm.$u.get(addSpreadUrl, params,config);
	let loginOut=(params = {}) => vm.$u.get(loginOutUrl, params,config);
	let notice=(params = {}) => vm.$u.get(noticeUrl, params,config);
	let ywfx=(params = {}) => vm.$u.get(ywfxUrl, params,config);
	let storeInfo=(params = {}) => vm.$u.get(storeInfoUrl, params,config);
	let editPayPass=(params = {}) => vm.$u.post(editPayPassUrl, params,config);
	let getExpress=(params = {}) => vm.$u.post(getExpressUrl, params,config);
	let transfer=(params = {}) => vm.$u.post(transferUrl, params,config);
	let spreadCodeName=(params = {}) => vm.$u.post(spreadCodeNameUrl, params,config);
	let edition=(params = {}) => vm.$u.post(editionUrl, params,config);
	let pinFreeUser=(params = {}) => vm.$u.post(pinFreeUserUrl, params,config);
	//代购
	let assistOrderCart=(params = {}) => vm.$u.get(assistOrderCartUrl, params,config);
	let assistPay=(params = {}) => vm.$u.post(assistPayUrl, params,config);

	//订单详情 和 新支付
	let newOrder = (params = {}) => vm.$u.get(newOrderUrl, params,config);
	let newPay = (params = {}) => vm.$u.get(newPayUrl, params,config);

	let createGift=(params = {}) => vm.$u.post(createGiftUrl, params,config);
	let giftInfo=(params = {}) => vm.$u.post(giftInfoUrl, params,config);
	let receiveGift=(params = {}) => vm.$u.post(receiveGiftUrl, params,config);
	let sendList=(params = {}) => vm.$u.post(sendListUrl, params,config);
	let receiveList=(params = {}) => vm.$u.post(receiveListUrl, params,config);
	let giftReceiveList=(params = {}) => vm.$u.post(giftReceiveListUrl, params,config);
	let createGiftOrder=(params = {}) => vm.$u.post(createGiftOrderUrl, params,config);


	let getToken = (params = {}) => {
		return true
	};

	vm.$u.api = {config,login,register,forgetPassword,getPhoneCode,getPhoneCodeNow,bannerList,getMenu,userCoupon,getCoupon,goodsRecommendList,
	goodsDetail,collect,addressList,editAddress,delAddress,bankList,editBank,delBank,getOrderPayResult,goodsList,categoryList,addCart,cartLists,zhiboRoomList,hdList,getCxInfo,getTxInfo,shtxBanner,
	cartCount,delCart,commentList,collectList,cancelCollect,userInfo,editUserInfo,editHeadImg,buyNow,cuxiaoBanner,pinList,getPinInfo,getPinYen,setPinShare,setZsGoods,
	isLogin,wxminiGetOpenid,pay,orderCart,carPay,orderList,orderDetail,orderCancle,orderPay,orderReceipt,pinBanner,pinLists,hdLists,
	orderComment,refundApply,refundInfo,refundLists,cancelRefund,refundDelivery,expressList,editPassword,ywfx,
	editPhone,spreadBanner,presellDetail,presellBuy,presellOrder,presellCreateOrder,presellPay,presellOrderList,presellList,exchangeDetail,exchangeBuy,exchangeOrder,exchangeCreateOrder,exchangePay,exchangeOrderList,exchangeList,exchangeExpress,getExchangeExpress,
	stockCreateOrder,stockOrderList,stockInfo,stockTeamList,stockRecordList,stockTransfer,stockTransferList,stockRefundList,stockAuditList,stockAudit,stockReject,
	stockRefund,stockCancelOrder,stockPurchasePay,stockNoticeCreate,stockCheckPrice,
	seckillDetail,seckillBuy,seckillOrder,seckillPay,timeLimitedList,timeLimitedDetail,timeLimitedOrder,payTimeLimitedOrder,timeLimitedOrderList,
	timeLimitedCancel,timeLimitedReceipt,timeLimitedGoPay,timeLimitedOrderDetail,timeLimitedRefundApply,timeLimitedRefundLists,
	timeLimitedRefundCancel,timeLimitedRefundDelivery,sharingList,sharingDetail,sharingGroupList,sharingOrder,
	paySharingOrder,sharingOrderList,sharingOrderDetail,sharingCancel,sharingReceipt,sharingGoPay,sharingRefundApply,
	sharingRefundLists,sharingRefundCancel,sharingRefundDelivery,goodsBanner,myTeam,distributeLog,withdraw,levelLog,
	wxchat_get_openid,userProblem,userMessage,getAboutUs,getAssistList,getAssistCode,orderExpress,sharingExpress,timeLimitedExpress,
	loginOut,getToken,getXieyi,addSpread,notice,storeInfo,editPayPass,getExpress,transfer,spreadCodeName,edition,pinFreeUser,assistOrderCart,
	assistPay,createGift,giftInfo,receiveGift,sendList,receiveList,giftReceiveList,createGiftOrder,newOrder,newPay};
}

export default {
	install
}

